package pattern4;

/**
 * p57
 * 代理模式
 * @author wdl
 */
public class ProxyPattern {
    public static void main(String[] args) {
        SchoolGirl schoolGirl=new SchoolGirl();
        schoolGirl.setName("李娇娇");

        Proxy proxy=new Proxy(schoolGirl);

        proxy.giveDolls();
        proxy.giveFollowers();
    }
}
